]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: fix errors in fallback HotCorner function
authorTim Lunn <tim@feathertop.org>
Tue, 5 Mar 2013 06:49:35 +0000 (17:49 +1100)
committerTim Lunn <tim@feathertop.org>
Tue, 5 Mar 2013 06:53:59 +0000 (17:53 +1100)
js/ui/layout.js

index 63d040dd30c480292539d643e23e7921ba0ce7d1..6ca5d841fa518913df137b09b4a2687f1b456758 100644 (file)
@@ -1112,7 +1112,7 @@ const HotCorner = new Lang.Class({
         this._x = x;
         this._y = y;
 
-        this._setupFallbackCornerIfNeeded();
+        this._setupFallbackCornerIfNeeded(layoutManager);
 
         this._pressureBarrier = new PressureBarrier(HOT_CORNER_PRESSURE_THRESHOLD,
                                                     HOT_CORNER_PRESSURE_TIMEOUT,
@@ -1156,10 +1156,10 @@ const HotCorner = new Lang.Class({
         }
     },
 
-    _setupFallbackCornerIfNeeded: function() {
+    _setupFallbackCornerIfNeeded: function(layoutManager) {
         if (!global.display.supports_extended_barriers()) {
             this.actor = new Clutter.Actor({ name: 'hot-corner-environs',
-                                             x: x, y: y,
+                                             x: this._x, y: this._y,
                                              width: 3,
                                              height: 3,
                                              reactive: true });